<?php
class Users extends data 
{
	public function __construct()
	{
		parent::__construct();
		
		switch ($_POST['op'])
		{
			case "AjaxGetUserList":
				echo $this->AjaxGetUserList();
			break;
			case "AjaxGetUser":
				echo $this->AjaxGetUser();
			break;			
			case "AjaxSetUser":
				echo $this->AjaxSetUser();
			break;
			case "AjaxDeleteUser":
				echo $this->AjaxDeleteUser();
			break;
		}
	}
	
	public function AjaxGetUserList()
	{
				
		$Users_data = parent::getUserList();
		
		if($Istance_data)
		{
			$elUsersListGrid = new elSimplyGrid();
			$elUsersListGrid->elGridDataOption('lastactivity','long-time');
			$elUsersListGrid->createSimplyGrid('Lista Utenti', 'userlist', array('Nome Utente', 'Profilo', 'Ultima Attivit&agrave'), 
				$Users_data,
				el::elButton('elimina_utente','Elimina Utente').el::elS().el::elButton('modifica_utente', 'Modifica Utente')
			);	
			return $elUsersListGrid->elSimplyGrid;
		}
		else
			return null;
	}
	
	public function AjaxGetUser()
	{
		
	}
	
	Public Function AjaxSetUser()
	{
		
	}
	
	public function AjaxDeleteUser()
	{
		
	}
}

if($session->sesssionExists())
		$users = new Users();
?>